from datetime import datetime, timedelta

cur = datetime(year=2023, month=1, day=1)
end = datetime(year=2023, month=12, day=31)
result = 0
while cur <= end:
    weekday = cur.weekday()
    month = cur.month
    day = cur.day
    adding = 1
    if month in (1, 11, 12, 10):
        adding = 5
    if '1' in str(day):
        adding = 5
    if weekday == 0:
        adding = 5
    result += adding
    cur += timedelta(days=1)

print(result)
